import request from '../utils/request'

export function postLoginApi (data) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function postLogoutApi (data) {
  return request({
    url: '/user/logout',
    method: 'post',
    data
  })
}

export function postLikesApi (data) {
  return request({
    url: '/msbd/postLikes',
    method: 'post',
    data
  })
}

export function getLikesApi(params){
  return request ({
    url:'/msbd/getLikes',
    method:'get',
    params
  })
}

export function getLikesCountApi(params){
  return request ({
    url:'/msbd/likeCount',
    method:'get',
    params
  })
}

export function postStudyApi(data){
  return request ({
    url:'/msbd/postStudy',
    method:'post',
    data
  })
}

export function getStudyBdidByUidApi(params){
  return request({
    url:'/msbd/getStudy',
    method:'get',
    params
  })
}

export function delLikeApi(params){
  return request({
    url:'/msbd/delLikes',
    method:'get',
    params
  })
}

export function postCollectionApi(data){
  return request({
    url:'/msbd/postCollection',
    method:'post',
    data
  })
}

export function getCollectionApi(params){
  return request({
    url:'/msbd/getCollection',
    method:'get',
    params
  })
}

export function getMsbdByCollectApi(params){
  return request({
    url:'/msbd/getMsbdByCollection',
    method:'get',
    params
  })
}

export function deleteCollectApi(params){
  return request({
    url:'/msbd/deleteCollection',
    method:'get',
    params
  })
}